<?php /* Smarty version Smarty-3.1.12, created on 2013-04-19 16:15:46
         compiled from "/www/htdocs/w00fc40b/dota2league/templates/match/modals/cancelMatch.tpl" */ ?>
<?php /*%%SmartyHeaderCode:400855166513f79b7d651a8-76501467%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9d85e6df1cdd0be131cbc2c319a8993175bc2847' => 
    array (
      0 => '/www/htdocs/w00fc40b/dota2league/templates/match/modals/cancelMatch.tpl',
      1 => 1366380942,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '400855166513f79b7d651a8-76501467',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_513f79b7de1362_25633805',
  'variables' => 
  array (
    'data' => 0,
    'v' => 0,
    'checked' => 0,
    'disabled' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_513f79b7de1362_25633805')) {function content_513f79b7de1362_25633805($_smarty_tpl) {?>
<!-- Modal Submit Result -->
<div id="myModalCancelMatch" class="modal hide fade" tabindex="-1"
	role="dialog" aria-labelledby="myModalCancelMatch" aria-hidden="true">
		<div class="modal-header">
			<button type="button" class="close" data-dismiss="modal"
				aria-hidden="true">×</button>
			<h3 id="myModalCancelMatchLabel">Cancel Match</h3>
		</div>

		<div class="modal-body">
			<div class="alert alert-warn">
				<h4>Warning:</h4>
				you can't change your submission afterwards, please be sure you
				submit the right reason!
			</div>

			<div class="control-group">
				<label class="control-label" for="checkWinLose">Reason:</label>
				<div class="controls" id="checkWinLoseCheckboxDiv">
					<div class="btn-group" data-toggle="buttons-radio"
						id="checkGroup">
						<button type="button" class="btn active"
							onclick="$('#leaverCancelMatchPannelArea').toggle();" value="2">couldn't play Match/Match is broken!</button>
						<button type="button" class="btn"
							onclick="setWinLoseValue(this);$('#leaverCancelMatchPannelArea').toggle();" value="1">Player didn't join the match</button>
						
					</div>
					<div id="checkErrorDiv"></div>
				</div>
			</div>
			<div id="leaverCancelMatchPannelArea" style="display:none">
			
				<h4>Select Player, who didn't join the Match</h4>
				<div id="leaverCancelMatchPannel">
						<div class="pull-left" style="width:50%">
							<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value['data']['team1']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?> 
								<?php if ($_SESSION['user']['steamID']==$_smarty_tpl->tpl_vars['v']->value['SteamID']){?>
									<?php $_smarty_tpl->tpl_vars["disabled"] = new Smarty_variable("disabled", null, 0);?>
								<?php }else{ ?>
									<?php $_smarty_tpl->tpl_vars["disabled"] = new Smarty_variable('', null, 0);?>
								<?php }?>
								<label class="checkbox" id="label_<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
"> 
									<input type="checkbox"
									value="<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
"
									id="player<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
"
									name="player<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
" <?php echo $_smarty_tpl->tpl_vars['checked']->value;?>
 <?php echo $_smarty_tpl->tpl_vars['disabled']->value;?>
>
									<img alt="Avatar" src="<?php echo $_smarty_tpl->tpl_vars['v']->value['Avatar'];?>
" width="25" height="25">
									<?php echo $_smarty_tpl->tpl_vars['v']->value['Name'];?>

								</label> 
							<?php } ?>
						</div>
						<div class="pull-left" style="width:50%">
							<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value['data']['team2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value){
$_smarty_tpl->tpl_vars['v']->_loop = true;
 $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['v']->key;
?> 
							<?php if ($_SESSION['user']['steamID']==$_smarty_tpl->tpl_vars['v']->value['SteamID']){?>
									<?php $_smarty_tpl->tpl_vars["disabled"] = new Smarty_variable("disabled", null, 0);?>
								<?php }else{ ?>
									<?php $_smarty_tpl->tpl_vars["disabled"] = new Smarty_variable('', null, 0);?>
								<?php }?>
								<label class="checkbox" id="label_<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
"> 
									<input type="checkbox"
									value="<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
"
									id="player<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
"
									name="player<?php echo $_smarty_tpl->tpl_vars['v']->value['SteamID'];?>
" <?php echo $_smarty_tpl->tpl_vars['checked']->value;?>
>
									<img alt="Avatar" src="<?php echo $_smarty_tpl->tpl_vars['v']->value['Avatar'];?>
" width="25" height="25">
									<?php echo $_smarty_tpl->tpl_vars['v']->value['Name'];?>

								</label> 
							<?php } ?>
					</div>
	
				</div>
			</div>
		</div>
		<div class="modal-footer">
			<button id="myModalCancelButton" class="btn" data-dismiss="modal"
				aria-hidden="true">Back</button>
			<button type="button" id="myModalCancelMatchSubmitButton"
				class="btn btn-success" onclick="submitCancelMatch()">Cancel Match!</button>
		</div>
</div><?php }} ?>